package com.authine.cloudpivot.ext.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Schema(description = "账单记录")
public class BillDto {

    @Schema(description = "交易id")
    private String trade_id;

    @Schema(description = "隶属于的目标id")
    private String target_id;

    @Schema(description = "方向：销售、采购")
    private String direction;

    @Schema(description = "业务类型：普通订单、代购订单")
    private String business_type;

    @Schema(description = "来源id")
    private String reference_id;

    @Schema(description = "客户订单id")
    private String customer_order_id;

    @Schema(description = "供应商订单id")
    private String vendor_order_id;

    @Schema(description = "订单商品id")
    private String order_goods_id;

    @Schema(description = "组织")
    private String organization_id;

    @Schema(description = "账单类型")
    private String type;

    @Schema(description = "商品摘要")
    private String summary;

    @Schema(description = "账单日期")
    private Date bill_date;

    @Schema(description = "客户或供应商组织名称")
    private String organization_name;

    @Schema(description = "数量")
    private BigDecimal quantity;

    @Schema(description = "可核销数量")
    private BigDecimal offset_quantity;

    @Schema(description = "含税单价")
    private BigDecimal price;

    @Schema(description = "账单税率")
    private BigDecimal tax_rate;

    @Schema(description = "总计")
    private BigDecimal total;

    @Schema(description = "")
    private Integer del;

    @Schema(description = "")
    private String version;

    private Boolean refundNonExist;


}
